import cv2
img = cv2.imread(r"/\images\003.jpeg")
img1 = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img2 = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img3 = cv2.cvtColor(img, cv2.COLOR_BGR2YCrCb)
img4 = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
pic = [("img", img), ("img1", img1), ("img2", img2),
       ("img3", img3), ("img4", img4)]
ret = img.shape
for name, val in pic:
    cv2.namedWindow(name, cv2.WINDOW_NORMAL)
    cv2.resizeWindow(name, ret[1] // 2, ret[0] // 2)
    cv2.imshow(name, val)
    key = cv2.waitKey(5000)
    if key == 27:
        break
cv2.destroyAllWindows()